//
//  HMHomeFunctionModel.m
//  QuickCure1
//
//  Created by Apple on 16/11/1.
//  Copyright © 2016年 maoge. All rights reserved.
//

#import "HMHomeFunctionModel.h"

@implementation HMHomeFunctionModel

+(NSArray<HMHomeFunctionModel *> *)loadHomeFunction{
    HMHomeFunctionModel *model = [[HMHomeFunctionModel alloc]init];
    
    //获取plist文件
    NSString *filePath = [[NSBundle mainBundle]pathForResource:@"homeFunction.plist" ofType:nil];
    
    NSArray *array = [NSArray arrayWithContentsOfFile:filePath];
    
    NSArray<HMHomeFunctionModel *> *modelArray = [NSArray yy_modelArrayWithClass:[model class] json:array];
    
    NSMutableArray *mArray = [NSMutableArray arrayWithCapacity:modelArray.count];
    [modelArray enumerateObjectsUsingBlock:^(HMHomeFunctionModel * obj, NSUInteger idx, BOOL * _Nonnull stop) {
        
        obj.ci1_id = idx + 1;
        [mArray addObject:obj];
        
    }];
    
  return mArray.copy ;
    
}


-(NSString *)description{
    
    return [self yy_modelDescription];
}
@end
